//
//  VerticalTableViewCell.m
//  SheShiDu
//
//  Created by 单剑秋 on 16/6/14.
//  Copyright © 2016年 单剑秋. All rights reserved.
//

#import "VerticalTableViewCell.h"

@implementation VerticalTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {

//        self.contentView.backgroundColor = [UIColor greenColor];
        
        self.mainButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [_mainButton setImage:[UIImage imageNamed:@"tu4.jpg"] forState:UIControlStateNormal];
        _mainButton.imageView.layer.masksToBounds = YES;
        _mainButton.imageView.layer.cornerRadius = 5;
        [self.contentView addSubview:_mainButton];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.mainButton.frame = CGRectMake(10, 5, self.contentView.frame.size.width - 20, self.contentView.frame.size.height - 10);
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
